﻿<%@ Page Title="" Language="C#" MasterPageFile="~/View/Master.Master" AutoEventWireup="true" CodeBehind="PurchaseOrder.aspx.cs" Inherits="PresentationLayer.View.WebForm5" %>
<%@ Register src="../mainMenu.ascx" tagname="mainMenu" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">

        .style7
        {
            width: 114px;
        }
        .style8
        {
            width: 29px;
        }
        .style9
        {
            width: 249px;
            height: 43px;
            margin-left: 125px;
        }
        .style10
        {
            width: 249px;
            height: 40px;
            margin-left: 125px;
        }
        .style11
        {
            height: 151px;
        }
        .style13
        {
            height: 40px;
        }
        .style15
        {
            height: 43px;
        }
        .style16
        {
            width: 249px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <table width="100%">
    <tr>
        <td style="height:auto;width:200px;vertical-align:top;">
             <uc2:mainMenu ID="mainMenu1" runat="server" />
        </td>
        <td>


    <div>
        <center>
            <b>
            <h2>
                <u>Purchase Order Forms</u></h2>
            </b>
        </center>
        <br />
        <table class="style11">
            <tr>
                 <td class="style16">&nbsp;<asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" 
                 >Back</asp:LinkButton>&nbsp;&nbsp;</td>
                 <td> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>

                 </tr>
            <tr>                
                <td class="style10">
                    <asp:Label ID="Label1" runat="server" Text="Item Code"></asp:Label>
                    &nbsp;</td>
                <td>
                    <asp:Label ID="lblItemCode" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    <asp:Label ID="Label2" runat="server" Text="Item Name"></asp:Label>
                </td>
                <td class="style13">
                    <asp:Label ID="lblItemName" runat="server"></asp:Label>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
            </tr>
            <tr>
                <td class="style9">
                    <asp:Label ID="Label3" runat="server" Text="Current Stock"></asp:Label>
                </td>
                <td class="style15">
                    <asp:Label ID="lblCurrentStock" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="style10">
                    <asp:Label ID="Label4" runat="server" Text="Reorder Qty."></asp:Label>
                </td>
                <td class="style13">
                    <asp:Label ID="lblReorderQty" runat="server"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <table>
            <tr>
                <td class="style5">
                    &nbsp;</td>
                <td>
                    <asp:GridView ID="foo" runat="server" autogeneratecolumns="False" 
                        CellPadding="4" ForeColor="#333333" 
                        GridLines="None" style="margin-left: 0px" Width="445px" 
                        DataKeyNames="Price"
                        >
                        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        <columns>
                            <asp:boundfield datafield="SupplierId" HeaderText="Supplier" >
                            <ItemStyle HorizontalAlign="Right" />
                            </asp:boundfield>
                            <asp:boundfield datafield="Price" HeaderText="Price">
                            <ItemStyle HorizontalAlign="Right" />
                            </asp:boundfield>
                            <asp:TemplateField HeaderText="Quantity">
                            <ItemTemplate>
                            <asp:TextBox ID="qty" OnTextChanged="qtyText_Changed" AutoPostBack="true" runat="server"></asp:TextBox>
                            </ItemTemplate>
                                <ItemStyle HorizontalAlign="Right" />
                            </asp:TemplateField>


                         <asp:TemplateField HeaderText="Amount">
                         <ItemTemplate>
                         <asp:Label ID="Amount" runat="server"></asp:Label>
                         </ItemTemplate>
                         </asp:TemplateField>
                        </columns>
                        <EditRowStyle BackColor="#999999" />
                        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
        <br />
        <table>
            <tr>
                <td class="style4">
                 &nbsp;&nbsp;</td>
         <td> &nbsp;&nbsp;</td>
                <td class="style7">
                    &nbsp;&nbsp;<asp:Button ID="btnOrder" runat="server" Text="Order" Width="98px" 
                        onclick="btnOrder_Click" Enabled="False" />
                </td>
                <td class="style8">
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td>
                    &nbsp;
                    <asp:Button ID="btnCancel" runat="server" Height="27px" 
                        style="margin-left: 0px" Text="Cancel" Width="80px" />
                    &nbsp;&nbsp;</td>
            </tr>
            <asp:HiddenField ID="tot" Value="First" runat="server" />
            <asp:Label ID="err" runat="server" ></asp:Label>
        </table>
    </div>
     </td> </tr></table>
</asp:Content>
